public class Test {
    public static void main(String[] argc){
        Creator factory = new ConcrateCreater();
        Product iphone = factory.createProduct(Phone.class);
        Product SonyTV = factory.createProduct(TV.class);
        iphone.method();
        iphone.pri_method();
        SonyTV.method();
        SonyTV.pri_method();
    }
}
